/*
 ============================================================================
 Name        : c_module.c
 Author      : gavin
 Version     :
 Copyright   : gavin@xjnu.edu.cn
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/variable.h"
#include "include/condition.h"
#include "include/pointer.h"
#include "include/string_type.h"
#include "include/data_type.h"
#include "include/memory.h"
#include "include/io.h"
#include "include/array.h"

/**
 * C语言是面向过程式的语言
 * C语言大小写敏感
 * C语言最新标准为C11，之前为C99
 */

/**
 * 函数声明
 * 函数声明会告诉编译器函数名称以及如何调用
 *
 */
void print();

int main(void) {

//	basic_type();
//	struct_type();
//	int2char();
//	char2int();
//	variable();
//	const_variable();
//	storage_classes();
//	condition_if();

//	int length = 5;
//	int grade[length];
//	condition_switch(grade);

//	pointer();
//	func_pointer();

//	string();
//	memory();
	// array
	int length = 5;
	int array[length];
	create(array, length);
//	print_array(array, length);

	print_array_v2(array, length);

	return EXIT_SUCCESS;
}

/**
 * 函数定义
 */
void print() {
	puts("!!!Hello World!!!");
	printf("hello geyang! \n");
}


